<?php
function lib_arclist_qz(&$ctag,&$refObj)
{
	require_once(DEDEROOT.'/data/enums/qzgb.php');
	global $dsql,$PubFields,$cfg_keyword_like,$cfg_index_cache,$_arclistEnv,$envs,$_sys_globals,$em_qzgbs;

	//属性处理
	$attlist="typeid|0,row|10,col|1,flag|,titlelen|30,sort|default,keyword|,innertext|,arcid|0,idlist|,channelid|0,limit|,orderway|desc,subday|0";
	FillAttsDefault($ctag->CAttribute->Items,$attlist);
	extract($ctag->CAttribute->Items, EXTR_SKIP);

	$line = $row;
	$orderby=strtolower($sort);
	if($col=='') $col = 1;
	$innertext = trim($ctag->GetInnerText());
	if($innertext=='') $innertext = GetSysTemplets("part_arclistsg.htm");



$dtp2 = new DedeTagParse();
	$dtp2->SetNameSpace("field","[","]");
	$dtp2->LoadString($innertext);

foreach($em_qzgbs as $eid=>$em)
		{
			
				$artlist .= '<option value='.$eid.'>'.$em.'</option>';
			
              
				
		
			
		
	}//loop line
	$dsql->FreeResult("al");
	
	return $artlist;
}

?>